from flask import Blueprint, jsonify

# 创建蓝图
user_bp = Blueprint(
    "user", __name__, template_folder="templates", url_prefix="/api")

# 定义路由


@user_bp.route("/users")
def get_users():
    return jsonify({"message": "List of users"})


@user_bp.route("/users/<int:user_id>")
def get_user(user_id):
    return jsonify({"message": f"Details of user {user_id}"})
